﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Business;

namespace OgrIsleri.DashBoard.Modul.Duyurular
{
    public partial class TumListe : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack) return;

            VeriDoldur();
        }

        private void VeriDoldur()
        {
            using (DbEntities db = new DbEntities())
            {
                var data = db.tblDuyurulars.OrderByDescending(o => o.Tarih).ToList();
                RptListe.DataSource = data;
                RptListe.DataBind();
            }
        }
    }
}